package com.codingxyz.simple.volatiles;

public class MyData{

    volatile int number = 0;


    public void addT060(){

        this.number = 60;
    }

    //关键词签名加了volatile修饰
    public void addPlusPlus(){
        number++;
    }

}